package com.sunwayworld.common.utils;

import javax.servlet.http.HttpServletRequest;

public class MessageUtils {

	private static String MESSAGE = "message";

	public static void setMessage(HttpServletRequest request, String message) {
		request.setAttribute(MESSAGE, message);
	}

	public static String getMessage(HttpServletRequest request) {
		return SafeString.safeString(request.getAttribute(MESSAGE));
	}
}
